package com.emip.dao;

import java.util.List;

import com.emip.bean.UserBean;


public interface UserDAO {
	public UserBean login(String ID,String password);
	public void update(UserBean entity);
	public String add(UserBean entity);
	public UserBean findByID(String ID);
	public void remove(UserBean entity);
	public List<UserBean> getAll();
	//查重，是否已有指定UserBean.的记录
	public Boolean findExist(UserBean entity, int mode); //mode==1 add ; mode==2 update
}
